<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>EOS.IO: contracts/eoslib/math.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_3fea0bf1ce879ce73e6ecec98007efcd.html">eoslib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">math.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="math_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="math_8h.html">eoslib/math.h</a>&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="namespaceeos.html">    8</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceeos.html">eos</a> {</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="group__mathcppapi.html#ga23801e95fdf200a183909b3f4e819680">   39</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__mathcppapi.html#ga23801e95fdf200a183909b3f4e819680">multeq</a>( <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; <span class="keyword">self</span>, <span class="keyword">const</span> <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; other ) {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;     <a class="code" href="group__mathcapi.html#ga61d571f58c24fb4663cc3729f3d5613e">multeq_i128</a>( &amp;<span class="keyword">self</span>, &amp;other );</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group__mathcppapi.html#ga1ed045c04de3094739808554e3791359">   59</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__mathcppapi.html#ga1ed045c04de3094739808554e3791359">diveq</a>( <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; <span class="keyword">self</span>, <span class="keyword">const</span> <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; other ) {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;     <a class="code" href="group__mathcapi.html#gad70a23703654281749410aef05c85c74">diveq_i128</a>( &amp;<span class="keyword">self</span>, &amp;other );</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  }</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html">   66</a></span>&#160;  <span class="keyword">struct </span><a class="code" href="structeos_1_1uint128.html">uint128</a> {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;     <span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#ac5b25181f69351ed0785e8a5df44b9d1">   68</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html#ac5b25181f69351ed0785e8a5df44b9d1">uint128</a>( <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> i = 0 ):value(i){}</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a4763a690d6102d21ad203d59213d2da1">   69</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html#a4763a690d6102d21ad203d59213d2da1">uint128</a>( <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> i ):value(i){}</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a911afb9d70b5eba4f6ec331185891cbc">   70</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html#a911afb9d70b5eba4f6ec331185891cbc">uint128</a>( <a class="code" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> i ):value(i){}</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a35a742a797ca726ab2c74b8008479427">   72</a></span>&#160;        <span class="keyword">friend</span> <a class="code" href="structeos_1_1uint128.html">uint128</a> <a class="code" href="structeos_1_1uint128.html#a35a742a797ca726ab2c74b8008479427">operator * </a>( <a class="code" href="structeos_1_1uint128.html">uint128</a> a, <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; b ) {</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            <span class="keywordflow">return</span> a *= b;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        }</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a91483b24e056b89304858c45a26eb75c">   76</a></span>&#160;        <span class="keyword">friend</span> <a class="code" href="structeos_1_1uint128.html">uint128</a> <a class="code" href="structeos_1_1uint128.html#a91483b24e056b89304858c45a26eb75c">operator / </a>( <a class="code" href="structeos_1_1uint128.html">uint128</a> a, <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; b ) {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            <span class="keywordflow">return</span> a /= b;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        }</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a83f2d787236426424fe4b36ef7dea6ac">   79</a></span>&#160;        <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="structeos_1_1uint128.html#a83f2d787236426424fe4b36ef7dea6ac">operator &lt;= </a>( <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; a, <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; b ) {</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            <span class="keywordflow">return</span> a.value &lt;= b.value;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        }</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a6c839778f4a9713eb58fb8f0305bc53e">   82</a></span>&#160;        <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="structeos_1_1uint128.html#a6c839778f4a9713eb58fb8f0305bc53e">operator &gt;= </a>( <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; a, <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; b ) {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="keywordflow">return</span> a.value &gt;= b.value;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#ae8d57afaf0502b47c8ac41233d89c569">   86</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; <a class="code" href="structeos_1_1uint128.html#ae8d57afaf0502b47c8ac41233d89c569">operator *= </a>( <span class="keyword">const</span> <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; other ) {</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;           <a class="code" href="group__mathcppapi.html#ga23801e95fdf200a183909b3f4e819680">multeq</a>( value, other );</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;           <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#ada42f9d84627e4adf00223f358c7fea9">   90</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; <a class="code" href="structeos_1_1uint128.html#ae8d57afaf0502b47c8ac41233d89c569">operator *= </a>( <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; other ) {</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;           <a class="code" href="group__mathcppapi.html#ga23801e95fdf200a183909b3f4e819680">multeq</a>( value, other.value );</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;           <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        }</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a06e6004ec5fbff36e58c029621cc56b9">   95</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; <a class="code" href="structeos_1_1uint128.html#a06e6004ec5fbff36e58c029621cc56b9">operator /= </a>( <span class="keyword">const</span> <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a>&amp; other ) {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;           <a class="code" href="group__mathcppapi.html#ga1ed045c04de3094739808554e3791359">diveq</a>( value, other );</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;           <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        }</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a206b11960fbca128af563bdc57e8d573">   99</a></span>&#160;        <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; <a class="code" href="structeos_1_1uint128.html#a06e6004ec5fbff36e58c029621cc56b9">operator /= </a>( <span class="keyword">const</span> <a class="code" href="structeos_1_1uint128.html">uint128</a>&amp; other ) {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;           <a class="code" href="group__mathcppapi.html#ga1ed045c04de3094739808554e3791359">diveq</a>( value, other.value );</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;           <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structeos_1_1uint128.html#a42c6390eb938c1025e8a4590079a3912">  104</a></span>&#160;        <span class="keyword">explicit</span> <span class="keyword">operator</span> <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>()<span class="keyword">const </span>{</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;           <a class="code" href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a>( !(value &gt;&gt; 64), <span class="stringliteral">&quot;cast to 64 bit loss of precision&quot;</span> );</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;           <span class="keywordflow">return</span> <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>(value);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;     <span class="keyword">private</span>:</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> value = 0;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  };</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="group__mathcppapi.html#ga8cfe8cb6da0460d4502c320025bbd9c8">  128</a></span>&#160;   T <a class="code" href="group__mathcppapi.html#ga8cfe8cb6da0460d4502c320025bbd9c8">min</a>( <span class="keyword">const</span> T&amp; a, <span class="keyword">const</span> T&amp;b ) {</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;     <span class="keywordflow">return</span> a &lt; b ? a : b;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;   }</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="group__mathcppapi.html#ga422f063ec99a30ab7a395f0fafeffcb2">  147</a></span>&#160;   T <a class="code" href="group__mathcppapi.html#ga422f063ec99a30ab7a395f0fafeffcb2">max</a>( <span class="keyword">const</span> T&amp; a, <span class="keyword">const</span> T&amp;b ) {</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;     <span class="keywordflow">return</span> a &gt; b ? a : b;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;   }</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;}</div><div class="ttc" id="math_8h_html"><div class="ttname"><a href="math_8h.html">math.h</a></div></div>
<div class="ttc" id="group__systemcapi_html_gae2a6ebaf48fe7c69f847ae18f109d09a"><div class="ttname"><a href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a></div><div class="ttdeci">void assert(uint32_t test, const char *cstr)</div><div class="ttdoc">Aborts processing of this message and unwinds all pending changes. </div></div>
<div class="ttc" id="structeos_1_1uint128_html_a911afb9d70b5eba4f6ec331185891cbc"><div class="ttname"><a href="structeos_1_1uint128.html#a911afb9d70b5eba4f6ec331185891cbc">eosio::uint128::uint128</a></div><div class="ttdeci">uint128(uint32_t i)</div><div class="ttdef"><b>Definition:</b> math.hpp:70</div></div>
<div class="ttc" id="group__types_html_gaaa5d1cd013383c889537491c3cfd9aad"><div class="ttname"><a href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a></div><div class="ttdeci">unsigned long long uint64_t</div><div class="ttdef"><b>Definition:</b> types.h:17</div></div>
<div class="ttc" id="structeos_1_1uint128_html_ac5b25181f69351ed0785e8a5df44b9d1"><div class="ttname"><a href="structeos_1_1uint128.html#ac5b25181f69351ed0785e8a5df44b9d1">eosio::uint128::uint128</a></div><div class="ttdeci">uint128(uint128_t i=0)</div><div class="ttdef"><b>Definition:</b> math.hpp:68</div></div>
<div class="ttc" id="group__mathcapi_html_ga61d571f58c24fb4663cc3729f3d5613e"><div class="ttname"><a href="group__mathcapi.html#ga61d571f58c24fb4663cc3729f3d5613e">multeq_i128</a></div><div class="ttdeci">void multeq_i128(uint128_t *self, const uint128_t *other)</div><div class="ttdoc">Multiply two 128 unsigned bit integers. Throws exception if pointers are invalid. ...</div></div>
<div class="ttc" id="group__types_html_ga06896e8c53f721507066c079052171f8"><div class="ttname"><a href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a></div><div class="ttdeci">unsigned long uint32_t</div><div class="ttdef"><b>Definition:</b> types.h:18</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a91483b24e056b89304858c45a26eb75c"><div class="ttname"><a href="structeos_1_1uint128.html#a91483b24e056b89304858c45a26eb75c">eosio::uint128::operator/</a></div><div class="ttdeci">friend uint128 operator/(uint128 a, const uint128 &amp;b)</div><div class="ttdef"><b>Definition:</b> math.hpp:76</div></div>
<div class="ttc" id="group__mathcapi_html_gad70a23703654281749410aef05c85c74"><div class="ttname"><a href="group__mathcapi.html#gad70a23703654281749410aef05c85c74">diveq_i128</a></div><div class="ttdeci">void diveq_i128(uint128_t *self, const uint128_t *other)</div><div class="ttdoc">Divide two 128 unsigned bit integers and throws an exception in case of invalid pointers. </div></div>
<div class="ttc" id="namespaceeos_html"><div class="ttname"><a href="namespaceeos.html">eos</a></div><div class="ttdef"><b>Definition:</b> math.hpp:8</div></div>
<div class="ttc" id="group__mathcppapi_html_ga422f063ec99a30ab7a395f0fafeffcb2"><div class="ttname"><a href="group__mathcppapi.html#ga422f063ec99a30ab7a395f0fafeffcb2">eosio::max</a></div><div class="ttdeci">T max(const T &amp;a, const T &amp;b)</div><div class="ttdoc">Define similar to std::max() </div><div class="ttdef"><b>Definition:</b> math.hpp:147</div></div>
<div class="ttc" id="group__mathcppapi_html_ga23801e95fdf200a183909b3f4e819680"><div class="ttname"><a href="group__mathcppapi.html#ga23801e95fdf200a183909b3f4e819680">eosio::multeq</a></div><div class="ttdeci">void multeq(uint128_t &amp;self, const uint128_t &amp;other)</div><div class="ttdoc">wraps multeq_i128 from Math C API </div><div class="ttdef"><b>Definition:</b> math.hpp:39</div></div>
<div class="ttc" id="group__mathcppapi_html_ga1ed045c04de3094739808554e3791359"><div class="ttname"><a href="group__mathcppapi.html#ga1ed045c04de3094739808554e3791359">eosio::diveq</a></div><div class="ttdeci">void diveq(uint128_t &amp;self, const uint128_t &amp;other)</div><div class="ttdoc">wraps diveq_i128 from Math C API </div><div class="ttdef"><b>Definition:</b> math.hpp:59</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a35a742a797ca726ab2c74b8008479427"><div class="ttname"><a href="structeos_1_1uint128.html#a35a742a797ca726ab2c74b8008479427">eosio::uint128::operator*</a></div><div class="ttdeci">friend uint128 operator*(uint128 a, const uint128 &amp;b)</div><div class="ttdef"><b>Definition:</b> math.hpp:72</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a06e6004ec5fbff36e58c029621cc56b9"><div class="ttname"><a href="structeos_1_1uint128.html#a06e6004ec5fbff36e58c029621cc56b9">eosio::uint128::operator/=</a></div><div class="ttdeci">uint128 &amp; operator/=(const uint128_t &amp;other)</div><div class="ttdef"><b>Definition:</b> math.hpp:95</div></div>
<div class="ttc" id="group__types_html_ga396787e5ec029b1205bd3e4cd9763e7d"><div class="ttname"><a href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a></div><div class="ttdeci">unsigned __int128 uint128_t</div><div class="ttdef"><b>Definition:</b> types.h:20</div></div>
<div class="ttc" id="group__mathcppapi_html_ga8cfe8cb6da0460d4502c320025bbd9c8"><div class="ttname"><a href="group__mathcppapi.html#ga8cfe8cb6da0460d4502c320025bbd9c8">eosio::min</a></div><div class="ttdeci">T min(const T &amp;a, const T &amp;b)</div><div class="ttdoc">Defined similar to std::min() </div><div class="ttdef"><b>Definition:</b> math.hpp:128</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a4763a690d6102d21ad203d59213d2da1"><div class="ttname"><a href="structeos_1_1uint128.html#a4763a690d6102d21ad203d59213d2da1">eosio::uint128::uint128</a></div><div class="ttdeci">uint128(uint64_t i)</div><div class="ttdef"><b>Definition:</b> math.hpp:69</div></div>
<div class="ttc" id="structeos_1_1uint128_html"><div class="ttname"><a href="structeos_1_1uint128.html">eosio::uint128</a></div><div class="ttdoc">A struct that wraps uint128 integer and defines common operator overloads. </div><div class="ttdef"><b>Definition:</b> math.hpp:66</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a6c839778f4a9713eb58fb8f0305bc53e"><div class="ttname"><a href="structeos_1_1uint128.html#a6c839778f4a9713eb58fb8f0305bc53e">eosio::uint128::operator&gt;=</a></div><div class="ttdeci">friend bool operator&gt;=(const uint128 &amp;a, const uint128 &amp;b)</div><div class="ttdef"><b>Definition:</b> math.hpp:82</div></div>
<div class="ttc" id="structeos_1_1uint128_html_ae8d57afaf0502b47c8ac41233d89c569"><div class="ttname"><a href="structeos_1_1uint128.html#ae8d57afaf0502b47c8ac41233d89c569">eosio::uint128::operator*=</a></div><div class="ttdeci">uint128 &amp; operator*=(const uint128_t &amp;other)</div><div class="ttdef"><b>Definition:</b> math.hpp:86</div></div>
<div class="ttc" id="structeos_1_1uint128_html_a83f2d787236426424fe4b36ef7dea6ac"><div class="ttname"><a href="structeos_1_1uint128.html#a83f2d787236426424fe4b36ef7dea6ac">eosio::uint128::operator&lt;=</a></div><div class="ttdeci">friend bool operator&lt;=(const uint128 &amp;a, const uint128 &amp;b)</div><div class="ttdef"><b>Definition:</b> math.hpp:79</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
